package com.autonavi.abs.common.enumeration;

/**
 * @author wwy
 * @version V1.0
 * <p>Description: 响应编码</p>
 * @date 2020-07-20 15:59
 */
public enum ResponseCodeEnum {

    INTERFACE_EXCEPTION(-1, "INTERFACE_EXCEPTION", "服务异常"),
    FAIL(0, "FAIL", "调用失败"),
    SUCCESS(1, "SUCCESS", "调用成功"),
    PARAM_EMPTY(2, "PARAM_EMPTY", "请求参数为空"),
    PARAM_ILLEGAL(3, "PARAM_ILLEGAL", "请求参数不合法"),
    AUTH_FAIL(4, "AUTH_FAIL", "鉴权失败"),
    ;

    private int code;
    private String msg;
    private String desc;

    ResponseCodeEnum(int code, String msg, String desc) {
        this.code = code;
        this.msg = msg;
        this.desc = desc;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public String getDesc() {
        return this.desc;
    }
}
